package com.goertek.checklist.service.impl;

import com.goertek.checklist.domain.Checklist;
import com.goertek.checklist.mapper.ChecklistMapper;
import com.goertek.checklist.service.IChecklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChecklistServiceImpl implements IChecklistService {

    @Autowired
    ChecklistMapper checklistMapper;

    @Override
    public Checklist getChecklistItem(String code) {
        return checklistMapper.getChecklistItem(code);
    }

    @Override
    public int insertChecklist(Checklist list) {
        return checklistMapper.insert(list);
    }

    @Override
    public List<Checklist> getList(Checklist checklist) {
        return checklistMapper.getList(checklist);
    }

    @Override
    public int deleteChecklist(String[] ids) {
        return checklistMapper.deleteChecklist(ids);
    }

    @Override
    public int updateChecklist(Checklist list) {
        return checklistMapper.updateChecklist(list);
    }

}
